package com.atguigu.order.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "order") //批量配置绑定order，可以无需配置@RefreshScope 实现自动刷新配置
@Data
public class OrderProperties {
    String timeout;
    String autoConfirm;
    String dbUrl;
}
